#ifndef _WX_STATBOX_H_BASE_
#define _WX_STATBOX_H_BASE_

#include "wx/defs.h"

#if wxUSE_STATBOX

#include "wx/control.h"

extern const wxChar wxStaticBoxNameStr[];

// ----------------------------------------------------------------------------
// wxStaticBox: a grouping box with a label
// ----------------------------------------------------------------------------

class wxStaticBoxBase : public wxControl {
  public:
    wxStaticBoxBase() { }

    // overriden base class virtuals
    virtual bool AcceptsFocus() const { return false; }
    virtual bool HasTransparentBackground() { return true; }
    virtual void GetBordersForSizer( int *borderTop, int *borderOther ) const {
      const int BORDER = 5;
      *borderTop = GetLabel().empty() ? BORDER : GetCharHeight();
      *borderOther = BORDER;
    }

  private:
    DECLARE_NO_COPY_CLASS( wxStaticBoxBase )
};

#include "wx/gtk/statbox.h"

#endif // wxUSE_STATBOX

#endif
// _WX_STATBOX_H_BASE_
